const drawClock = require('../../utils/drawClock')
Page({
  onReady: function() {
    wx.createSelectorQuery()
    .select({ node: true, size: true })
    .fields({ node: true, size: true })
    .exec(res => {
      const canvas = res[0].node
      canvas.width = res[0].width
      canvas.height = res[0].height
      const draw = drawClock(canvas)
      draw()
    })
  }
})
